package com.wzh.project.work.main;

import java.util.Date;

import com.css.sword.utils.SwordJsonUtils;
import com.wzh.project.work.bean.DJNsrfbsrxxVO;

public class TestMain {
	public static void main(String[] args) {
		DJNsrfbsrxxVO vo=new DJNsrfbsrxxVO();
		vo.setLrrq(new Date());
		vo.setXgrq(new Date());
		Date date=new Date();
		date=new Date(2019, 12, 1);
		System.out.println(date);
		vo.setLrrq(date);
		String json=SwordJsonUtils.toJson(vo);
		System.out.println(json);
		DJNsrfbsrxxVO vo2=SwordJsonUtils.toObject(json, DJNsrfbsrxxVO.class);
		System.out.println(vo2);
	}

}
